package tgc.edu.yzy.security;

import java.util.Collection;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

public class User2 extends User{
	private Integer id;
	private String name;
	
	
	public Integer getId() {
		return id;
	}


	public void setId(Integer id) {
		this.id = id;
	}
	

	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public User2(String username, String password,Integer id, String name, Collection<? extends GrantedAuthority> authorities) {
		super(username, password, authorities);
		this.id=id;
		this.name=name;
	}

}
